package com.wyzz.hr.pojo;

import java.io.Serializable;

import com.wyzz.hr.base.ComonBeans;
import com.wyzz.hr.pojo.base.BaseAttdMachine;

public class AttdMachine extends BaseAttdMachine implements Serializable,
		Cloneable {

	public AttdMachine() {
	}

	public AttdMachine(String id) {
		super(id);
	}

	public AttdMachine(String macId, String macNo, String macIP,
			String macPort, Integer macPassword, Integer macHasFinger,
			Integer macStatus, String macDesc, Integer macSortId,
			String macClass) {
		super(macId, macNo, macIP, macPort, macPassword, macHasFinger,
				macStatus, macDesc, macSortId, macClass);
	}

	public AttdMachine clo() {
		Object obj = null;
		try {
			obj = super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return (AttdMachine) obj;
	}

	public String getMacClassMean() {
		return macClassMean;
	}

	public void setMacClass(String macClass) {
		super.setMacClass(macClass);
		if (macClass == null) {
			macClassMean = null;
		} else {
			String status = ComonBeans.getParameterValue(PROP_MAC_CLASS,
					new String[] { macClass });
			if (status != null)
				macClassMean = status.trim();
			else
				macClassMean = null;
		}
	}

	public Object clone() throws CloneNotSupportedException {
		return clo();
	}

	private static final long serialVersionUID = 1L;
	private String macClassMean;
}
